<template>
	<view class="container">
		<view class="index_dialog" v-if="isShowDialog">
			<image class="dialog-banner" src="@/static/image/dilog_banner.png"></image>
			<image @click="isShowDialog=false" class="dialog-close" src="@/static/image/close.png"></image>
		</view>
		<view>
			<swiper class="swiper">
				<swiper-item class="swiper-item">
					<image src="../../static/image/bywg1.png" mode="widthFix"></image>
				</swiper-item>
				<swiper-item class="swiper-item">
					<image src="../../static/image/byweg2.png" mode="widthFix"></image>
				</swiper-item>
				<swiper-item class="swiper-item">
					<image src="../../static/image/bywg3.png" mode="widthFix"></image>
				</swiper-item>
				<swiper-item class="swiper-item">
					<image src="../../static/image/bywg4.png" mode="widthFix"></image>
				</swiper-item>
			</swiper>
		</view>
		<view class="menu-group">
			<view class="menu-item" @click="openHot()">
				<image class="menu-item-image" src="../../static/image/Frame_7.png"></image>
				<text class="menu-item-text">热改楼盘</text>
			</view>
			<view class="menu-item" @click="openBag()">
				<image class="menu-item-image" src="../../static/image/Frame_5.png"></image>
				<text class="menu-item-text">拎包入住</text>
			</view>
			<view class="menu-item">
				<image class="menu-item-image" @click="openCons()" src="../../static/image/Frame_6.png"></image>
				<text class="menu-item-text">工作实景</text>
			</view>
			<view class="menu-item">
				<image class="menu-item-image" src="../../static/image/Frame 3.png"></image>
				<text class="menu-item-text">保洁阿姨</text>
			</view>
		</view>

		<view class="group">
			<view class="header-content">
				<view class="header-left">
					<view class="line"></view>
					<view class="header-title">热改楼盘</view>
				</view>
				<view class="header-more" @click="openHot()">更多</view>
			</view>
			<view class="list">
				<view class="item" @click="openHot()">
					<image class="item-image" src="../../static/image/Mask group_2@2x.png"></image>
					<view class="item-mark">
						<text class="item-title">天和尚上海</text>
						<text class="item-info">150m²/北欧风</text>
					</view>
				</view>
				<view class="item" @click="openHot()">
					<image class="item-image" src="../../static/image/Mask group_4.png"></image>
					<view class="item-mark">
						<text class="item-title">汤臣一品</text>
						<text class="item-info">130m²/欧美风</text>
					</view>
				</view>
				<view class="item">
					<image class="item-image" src="../../static/image/Mask group_3.png"></image>
					<view class="item-mark">
						<text class="item-title">静安新城</text>
						<text class="item-info">123m²/地中海</text>
					</view>
				</view>
			</view>
		</view>

		<view class="group">
			<view class="header-content">
				<view class="header-left">
					<view class="line"></view>
					<view class="header-title">拎包入住</view>
				</view>
				<view class="header-more" @click="openBag()">更多</view>
			</view>
			<view class="list">
				<view class="item" @click="openBag()">
					<image class="item-image" src="../../static/image/Mask group_2@2x.png"></image>
					<view class="item-mark">
						<text class="item-title">某某某某某某套餐</text>
						<text class="item-info">150-180m²</text>
						<text class="item-info">套餐具体套餐具体套餐具体套餐具体套 餐具体</text>
					</view>
				</view>
				<view class="item" @click="openBag()">
					<image class="item-image" src="../../static/image/Mask group_4.png"></image>
					<view class="item-mark">
						<text class="item-title">某某某某某某套餐</text>
						<text class="item-info">150-180m²</text>
						<text class="item-info">套餐具体套餐具体套餐具体套餐具体套 餐具体</text>
					</view>
				</view>
				<view class="item">
					<image class="item-image" src="../../static/image/Mask group_1@2x.png"></image>
					<view class="item-mark">
						<text class="item-title">某某某某某某套餐</text>
						<text class="item-info">150-180m²</text>
						<text class="item-info">套餐具体套餐具体套餐具体套餐具体套 餐具体</text>
					</view>
				</view>
			</view>
		</view>

		<view class="group">
			<view class="header-content">
				<view class="header-left">
					<view class="line"></view>
					<view class="header-title">工地实景</view>
				</view>
				<view class="header-more" @click="openCons()">更多</view>
			</view>
			<view class="list">
				<view class="work-item" @click="openCons()">
					<image class="work-item-image" src="../../static/image/Mask group@2x.png"></image>
					<view class="work-item-mark"><text class="work-item-title">天和尚上海</text></view>
				</view>
				<view class="work-item" @click="openCons()">
					<image class="work-item-image" src="../../static/image/Mask group.png"></image>
					<view class="work-item-mark"><text class="work-item-title">天和尚上海</text></view>
				</view>
				<view class="work-item">
					<image class="work-item-image" src="../../static/image/Mask group.png"></image>
					<view class="work-item-mark"><text class="work-item-title">天和尚上海</text></view>
				</view>
			</view>
		</view>
		<view class="helps" v-if="isDialogs">
			<image @click="isDialogs=false" class="help" src="../../static/image/Group 10.png"></image>
		</view>
		<view class="helps-s" v-else>
			<uni-section title="联系方式" type="line" style="position: relative;">
				<image @click="isDialogs=true" src="../../static/image/3.Icons_Outlined_close2.png"
					style="width: 44rpx;position: absolute;right: 0;top: 22rpx;" mode="widthFix">
				</image>
				<view class="image_intrex">
					<view class="image_intrex_s">
						<view class="image_intrex_is">
							<image style="width: 44rpx;" src="../../static/image/Frame_2@2x.png" mode="widthFix">
							</image>
						</view>
						<view class="image_intrex_tex">14865978215</view>
					</view>

					<view class="image_intrex_s">
						<view class="image_intrex_is">
							<image style="width: 44rpx;" src="../../static/image/Framea.png" mode="widthFix">
							</image>
						</view>
						<view class="image_intrex_tex">15948753264</view>
					</view>
					<view class="image_intrex_s">
						<view class="image_intrex_is">
							<image style="width: 44rpx;" src="../../static/image/Framee.png" mode="widthFix">
							</image>
						</view>
						<view class="image_intrex_tex">400-6369-798</view>
					</view>
				</view>
			</uni-section>
		</view>
	</view>
</template>


<script>
	export default {
		data() {
			return {
				title: "Helllo",
				isShowDialog: true,
				isDialogs: true,
				data: [

				]
			}
		},
		methods: {
			openHot() {

				uni.navigateTo({
					url: '/pages/hot/hot'
				});
			},
			openBag() {

				uni.navigateTo({
					url: '/pages/bag/bag'
				});
			},
			openCons() {
				uni.navigateTo({
					url: '/pages/construction/construction'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		width: 100%;
		height: 100vh;

		.index_dialog {
			position: fixed;
			width: 100%;
			height: 100vh;
			background: rgba(0, 0, 0, 0.5);
			z-index: 999;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;

			.dialog-banner {
				width: 542rpx;
				height: 724rpx;
			}

			.dialog-close {
				padding-top: 86rpx;
				width: 80rpx;
				height: 80rpx;
			}
		}

		.swiper {
			width: 100%;
			height: 450rpx;
		}

		.swiper-item {
			width: 100%;
			height: 450rpx;
		}

		.swiper-item image {
			width: 100%;
			height: 450rpx;
		}
	}

	.menu-group {
		box-sizing: border-box;
		width: 100%;
		display: flex;
		flex-direction: row;
		margin-top: 40rpx;
		margin-bottom: 40rpx;
		padding-left: 52rpx;
		padding-right: 52rpx;
		justify-content: space-between;
	}

	.menu-item {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.menu-item-image {
		width: 80rpx;
		height: 80rpx;
	}

	.menu-item-text {
		font-family: PingFang SC, PingFang SC-Bold;
		width: 96rpx;
		height: 34rpx;
		color: #333333;
		font-size: 24rpx;
		font-weight: 500;
	}

	.line {
		width: 8rpx;
		height: 30rpx;
		background: #3d9c36;
	}

	.group {
		width: 100%;
		background-color: white;
		padding: 28rpx 0;
		margin-bottom: 40rpx;
	}

	.header-content {
		box-sizing: border-box;
		display: flex;
		align-items: center;
		padding: 0 40rpx;
		justify-content: space-between;
		margin-bottom: 20rpx;
	}

	.header-left {
		height: 20rpx;
		display: flex;
		align-items: center;
	}

	.header-title {
		font-family: PingFang SC, PingFang SC-Bold;
		color: #333333;
		font-size: 32rpx;
		font-weight: 700;
		margin-left: 20rpx;
	}

	.header-more {
		font-family: PingFang SC, PingFang SC-Bold;
		color: #333333;
		font-size: 24rpx;
		font-weight: 500;
	}

	.header-more::after {
		content: '';
		width: 22rpx;
		height: 22rpx;
		display: inline-block;
		background-image: url('../../static/image/Group 6.png');
		background-size: 100% 100%;
		margin-left: 10.76rpx;
	}

	.list {
		display: flex;
		overflow-x: scroll;
	}

	.list :last-child {
		margin-right: 48rpx;
	}

	.item {
		width: 382rpx;
		height: 510rpx;
		position: relative;
		margin-left: 48rpx;
	}

	.item-image {
		width: 382rpx;
		height: 100%;
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}

	.item-mark {
		box-sizing: border-box;
		position: absolute;
		left: 0px;
		bottom: 0px;
		width: 382rpx;
		display: flex;
		flex-direction: column;
		padding: 24rpx 24rpx;
		background: rgba(0, 0, 0, 0.3);
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}

	.item-title {
		font-size: 24rpx;
		font-weight: 400;
		color: #ffffff;
		line-height: 24rpx;
	}

	.work-item-title {
		font-family: PingFang SC, PingFang SC-Bold;
		width: 100%;
		height: 100%;
		font-size: 24rpx;
		font-weight: 400;
		color: #ffffff;
		line-height: 24rpx;
		text-align: center;
	}

	.item-info {
		margin-top: 12rpx;
		opacity: 0.8;
		font-size: 20rpx;
		font-weight: 500;
		color: #ffffff;
		line-height: 28rpx;
	}

	.work-item-image {
		width: 520rpx;
		height: 100%;
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}

	.work-item {
		width: 520rpx;
		height: 312rpx;
		position: relative;
		margin-left: 48rpx;
	}

	.work-item-mark {
		box-sizing: border-box;
		position: absolute;
		left: 0px;
		bottom: 0px;
		width: 520rpx;
		display: flex;
		flex-direction: column;
		padding: 24rpx 24rpx;
		background: rgba(0, 0, 0, 0.3);
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}

	::-webkit-scrollbar {
		overflow-x: hidden;
	}

	.help {
		z-index: 333;
		position: fixed;
		right: 20rpx;
		bottom: 20rpx;
		width: 182rpx;
		height: 221rpx;
	}

	.helps-s {
		position: fixed;
		z-index: 999;
		width: 362rpx;
		height: 332rpx;
		right: 0;
		bottom: 172rpx;
		background: white;
		border-radius: 12rpx;
		box-shadow: -4rpx 4rpx 4rpx 0rpx rgba(0, 0, 0, 0.15);
		backdrop-filter: blur(4rpx);

	}

	.image_intrex {
		.image_intrex_s {
			display: flex;
			padding: 0 46rpx;
			margin-top: 20rpx;
		}

		.image_intrex_is {
			width: 44rpx;
		}

		.image_intrex_tex {
			margin-left: 40rpx;
			font-size: 28rpx;
		}
	}

	.image_intrex_s:first-child {
		margin-top: 32rpx;
	}
</style>